package com.wing.product.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.wing.product.dao.ProAbnormalCauseDao;
import com.wing.product.model.entity.ProAbnormalCause;

import com.wing.product.model.response.ProcessInfoVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


/**
 * -ServiceImpl
 *
 * @author
 */
@Service
@Slf4j
public class ProAbnormalCauseServiceImpl extends ServiceImpl<ProAbnormalCauseDao, ProAbnormalCause> implements ProAbnormalCauseService {

    /**
     * 获取工序异常信息列表
     * @param pg
     * @param map
     * @return
     */
    @Override
    public IPage<ProAbnormalCause> getAbnormalCauseList(Page<ProAbnormalCause> pg, Map<String, Object> map) {
        List<ProAbnormalCause> list = baseMapper.getAbnormalCauseList(pg, map);
        return pg.setRecords(list);
    }
}
